import request from '@/utils/request'

// 注册请求函数
export const reg = obj => request.post('index/reg', obj)

// 登录请求函数
export const login = obj => request.post('index/login', obj)

// 获取用户信息
export const getUserInfo = () => {
  return request('user/getUserInfo')
}

// 获取首页信息
export const index = obj => request.get('index/index', obj)
